<template>
	<view class="my-search">
		<!-- 搜索框区域 -->
		<view class="search-box" @click="goToSearchPage">
			<uni-icons type="search" size="17" color="gray"/>
			<text>搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"my-search",
		data() {
			return {
				
			};
		},
		methods:{
			goToSearchPage(){
				uni.navigateTo({
					url:"/subpage/search/search"
				})
			}
		}
	}
</script>

<style lang="less">
	// 搜索框区域
	.my-search{
		position: sticky;
		top: 0;
		z-index: 999;
		width: 100%;
		height: 100rpx;
		background-color: #c00000;
		display: flex;
		justify-content: center;
		align-items: center;
		.search-box{
			width: 95%;
			height: 70rpx;
			line-height: 70rpx;
			font-size: 30rpx;
			border-radius: 35rpx;
			background-color: #fff;
			text-align: center;
			color: gray;
			text{
				padding-left: 5px;
			}
		}
	}
</style>
